/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Common;

/**
 *
 * @author Samsung
 */
public class Message {
    
    private String sender;
    private String receiver;
    private String subject;
    private String body;

    public Message() {
        
    }

    public Message(String sender, String receiver, String subject, String body) {
        
        this.sender = sender;
        this.receiver = receiver;
        this.subject = subject;
        this.body = body;
    }

    public Message(Message message) {
        
        this.sender=message.sender;
        this.receiver=message.receiver;
        this.subject=message.subject;
        this.body=message.body;
        
    }
    
    

    public String getSender() {
        return sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public String getSubject() {
        return subject;
    }

    public String getBody() {
        return body;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public void setBody(String body) {
        this.body = body;
    }
    
    



    @Override
    public String toString()
    {
        return "sender: " + sender +", receiver: "+receiver +", subject: "+subject+" body: "+body ;
                
    }
    
    
    
    
}
